package com.travel.service;

import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BaseService<T> {
    void add(T t);

    void update(T t);

    void delete(Integer id);

    List<T> getList(Object obj);

    PageInfo<T> getList(Object obj, int pageNum, int pageSize);
}
